@echo off  

setlocal enabledelayedexpansion

cd /d %~dp0


set PUTTYEXE=putty.exe
set USERNAME=%1
set HOSTLOCAL=%2
set PASSWORD=%3
set PATHCMD=%4



%PUTTYEXE%  -ssh -l  %USERNAME%  -pw  %PASSWORD%  %HOSTLOCAL% -P 22  -m %PATHCMD%

